/* Interactive Design Page Styles */

/* ---- Header ---- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
}

#header .navbar {
    background: transparent;
    backdrop-filter: none;
}

#header .brand {
    color: #fff;
}

#header .nav-links a {
    color: rgba(255, 255, 255, 0.7);
}

#header .nav-links a:hover {
    color: #ff004f;
}

#header .menu-btn i {
    color: #fff;
}

/* ---- Hero Section ---- */
.interactive-hero {
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #000;
    overflow: hidden;
    position: relative;
    margin-top: 60px;
    z-index: 1;
}

.hero-split-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ---- Hero Panels (images only) ---- */
.hero-panel {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 1;
    transform: translateX(0);
}

.hero-left {
    left: 0;
}

.hero-right {
    right: 0;
}

.hero-panel.sliding {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.hero-panel.returning {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-panel.static {
    transition: none;
    transform: translateX(0) !important;
    z-index: 1;
}

.hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---- Hero Info Overlays (separate from panels, fixed to left/right sides) ---- */
.hero-info {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px;
    background: #000;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s 0.15s ease;
}

.hero-info-left {
    left: 0;
}

.hero-info-right {
    right: 0;
}

.hero-info.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-tag {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ff004f;
    font-family: 'Poppins', monospace;
    margin-bottom: 20px;
}

.hero-info h2 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 20px;
    font-family: 'Arial Black', 'Poppins', sans-serif;
}

.hero-info p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin-bottom: 40px;
}

/* Arrow link */
.hero-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Poppins', monospace;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-arrow-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ff004f;
    transition: left 0.3s ease;
    z-index: -1;
}

.hero-arrow-link:hover::before {
    left: 0;
}

.hero-arrow-link:hover {
    border-color: #ff004f;
}

.hero-arrow-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.hero-arrow-link:hover .hero-arrow-icon {
    transform: translateX(6px);
}

/* ---- Back Link (fixed pill, top-left of hero) ---- */
.back-link {
    position: fixed;
    top: 76px;
    left: 24px;
    z-index: 9997;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.3px;
    line-height: 1;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ff004f;
}

/* Cursor uses mix-blend-mode: difference for automatic color inversion */

/* ---- Responsive: Mobile card layout ---- */
@media only screen and (max-width: 900px) {
    .interactive-hero {
        height: auto;
        min-height: calc(100vh - 60px);
        overflow: visible;
    }

    .hero-split-container {
        display: flex;
        flex-direction: column;
        position: relative;
        height: auto;
    }

    .hero-panel {
        position: relative;
        width: 100% !important;
        height: auto;
        min-height: 0;
        transform: none !important;
        transition: none !important;
        z-index: 1 !important;
    }

    .hero-panel img {
        width: 100%;
        height: 50vw;
        min-height: 200px;
        object-fit: cover;
    }

    /* Reorder: left-panel, left-info, right-panel, right-info */
    .hero-left  { order: 1; }
    #info-daoist { order: 2; }
    .hero-right { order: 3; }
    #info-plant  { order: 4; }

    .hero-info {
        position: relative;
        width: 100%;
        height: auto;
        padding: 28px 24px;
        background: #111;
        z-index: 1;
        /* Hidden by default, expand on tap */
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
        pointer-events: none;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    }

    .hero-info.mobile-open {
        opacity: 1;
        max-height: 500px;
        padding: 28px 24px;
        pointer-events: auto;
    }

    .hero-info h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .hero-info p {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 24px;
    }

    .hero-arrow-link {
        padding: 12px 20px;
        font-size: 12px;
    }

    /* Tap indicator on panels */
    .hero-panel::after {
        content: 'Tap to view';
        position: absolute;
        bottom: 16px;
        right: 16px;
        background: rgba(0,0,0,0.6);
        color: rgba(255,255,255,0.8);
        font-size: 12px;
        padding: 6px 14px;
        border-radius: 20px;
        pointer-events: none;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: opacity 0.3s;
    }

    .hero-panel.tapped::after {
        opacity: 0;
    }

    /* Mobile: slightly larger tap target */
    .back-link {
        top: 72px;
        left: 16px;
        padding: 12px 22px;
        font-size: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .hero-info h2 {
        font-size: 22px;
    }
}
